//
//  LZPicModel.m
//  DoctorFAQs
//
//  Created by langZai on 2017/3/22.
//  Copyright © 2017年 zjq. All rights reserved.
//

#import "LZPicModel.h"

@implementation LZPicModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    // 多余key
}

- (instancetype)initWithDict:(NSMutableDictionary *)dict {
    self = [super init];
    if (self) {
        
        self.pid = dict[@"id"];
        [dict removeObjectForKey:@"id"];
        
        NSString *minPic = dict[@"img_min"];
        self.img_min = [NSString stringWithFormat:@"%@%@",IconURL,minPic];
        [dict removeObjectForKey:@"img_min"];
        
        NSString *maxPic = dict[@"img_max"];
        self.img_max = [NSString stringWithFormat:@"%@%@",IconURL,maxPic];
        [dict removeObjectForKey:@"img_max"];
        
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}

@end
